package com.jiantong.work.service;

import com.jiantong.work.model.OtherPurchaseRecord;
import io.terminus.common.model.Response;

import java.util.Map;

/**
 * Created by niufei on 2017/4/10.
 *
 */
public interface OtherPurchaseRecordWriteService {

    /**
     * 新建单据
     * @param otherPurchaseRecord 其他购买
     * @return Map<String , Object>
     */
    Response<Map<String , Object>> create(OtherPurchaseRecord otherPurchaseRecord , Integer toStatus);

    /**
     * 更新单据
     * @param otherPurchaseRecord 其他购买
     * @return Map<String , Object>
     */
    Response<Map<String , Object>> update(OtherPurchaseRecord otherPurchaseRecord , Integer toStatus);

    Boolean update(OtherPurchaseRecord otherPurchaseRecord);
}
